{include file="public_tpl/head"/}
<title>友链管理 - 友链编辑 - {$cfg_website}</title>
<meta name="keywords" content="{$cfg_keywords?:''}">
<meta name="description" content="{$cfg_description?:''}">
</head>
<body>
<!--面包屑-->
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 友链管理
    <span class="c-gray en">&gt;</span> 友链编辑
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<!--/面包屑-->

<div class="page-container">
    <form action="{:url('edit')}" method="post" class="form form-horizontal" id="form-admin-role-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>网站名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" value="{$item.id}" placeholder="" id="id" name="id">
                <input type="text" class="input-text" value="{$item.name}" placeholder="" id="name" name="name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>链接：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$item.link}" placeholder="" id="link" name="link">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>站点简介：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea type="text" class="textarea" id="info" name="info">{$item.info}</textarea>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">qq：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$item->getData('qq')}" placeholder="" id="qq" name="qq">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">邮箱：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="{$item->getData('email')}" placeholder="" id="email" name="email">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-success radius"><i class="icon-ok"></i> 确定</button>
            </div>
        </div>
    </form>
</div>
{include file="public_tpl/script"/}
</body>
<script>
    $(function () {
        (function() {
            var role_id = $('#role_id').data('value');
            $('#role_id').load('{:url("admin/get.api/roles")}?role_id='+role_id);
        })();
    });
</script>
</html>